package com.shan.design.combination.practice;

/**
 * 文本叶子构件
 * @author shanzheng
 * @date 2018-12-02 20:48
 **/
public class TextView extends AbstractView {
    private String name;

    public TextView(String name) {
        this.name = name;
    }

    @Override
    void buildView() {
        System.out.println("对[" + name + "]进行展示");
    }
}
